
#include "flv_information.h"
#include <cstdio>
#include <sstream>

TagDataInfo::TagDataInfo()
{

}

void TagDataInfo::PrintInfo()
{

}


MetaDataInfo::MetaDataInfo()
{

}

void MetaDataInfo::PrintInfo()
{

}

VideoDataInfo::VideoDataInfo()
{

}

void VideoDataInfo::PrintInfo()
{

}

AudioDataInfo::AudioDataInfo()
{

}

void AudioDataInfo::PrintInfo()
{

}

FlvTag::FlvTag()
{

}

FlvHeader::FlvHeader()
{

}

void FlvHeader::PrintInfo()
{
	std::stringstream ss;
	ss << "FLV HEADER FLAG      :" << m_f_data      << "." << m_l_data << "." << m_v_data << "\n";
	ss << "FLV HEADER VERSION   :" << (int)m_version     << "\n";
	ss << "FLV HEADER HAS AUDIO :" << (int)m_has_audio   << "\n";
	ss << "FLV HEADER HAS VIDOE :" << (int)m_has_video   << "\n";
	ss << "FLV HEADER OFFSET    :" << (int)m_data_offset << "\n";

	printf("%s.\n", ss.str().c_str());
}

void FlvHeader::InitMediaType(uint8_t has_video, uint8_t &has_audio)
{
	m_has_video = has_video;
	m_has_audio = has_audio;
}

void FlvHeader::InitVersion(uint8_t version)
{
	m_version = version;
}

void FlvHeader::InitDataOffset(uint32_t data)
{
	m_data_offset = data;
}

FlvFormat::FlvFormat()
{

}

void FlvFormat::InitMediaType(uint8_t has_video, uint8_t &has_audio)
{
	m_header.m_has_video = has_video;
	m_header.m_has_audio = has_audio;
}


